package com.ylxn.config;

import com.ylxn.pojo.Configuration;
import com.ylxn.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface Executor {
    /**
     * jdbc封装查询
     * @param configuration 数据源
     * @param mappedStatement mapper
     * @param params 参数
     * @param <E>
     * @return
     */
    public <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object... params) throws SQLException, ClassNotFoundException, NoSuchFieldException, IllegalAccessException, IntrospectionException, InvocationTargetException, InstantiationException;

}
